Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



8086 assembly mouse interrupt 33 function 03 int 33 03H to get mouse position and status of buttons


Home  > 8086  > interrupt list  > int 33 mouse interrupt  > 8086 assembly mouse interrupt 33 function 03 int 33 03H to get mouse position and status of buttons 
       
Int 33 03H 

Mouse interrupt 33 function 03H to get mouse position |  location and status of the buttons. 


mov ax,03
int 33h

RETURNS

BX=1 if left button is down
BX-2 if right button is down
BX-3 if both buttons are down
 CX = X ( Row )
DX = Y ( Coloumn ) 

Well in graphical mode 320 x 200 the value of cx is doubled. so handle this in code. 


  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam